﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/Master/AdminMaster.Master"
        CodeBehind="DeleteRelationToCompany_PS.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.RelationQuery.DeleteRelationToCompany_PS" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        function checkDel() {
            if (confirm('确认删除？')) {
                return true;
            }
            else
                return false;
        }
    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblCompanyId" runat="server" Text="企业编号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyId" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblCompanyName" runat="server" Text="企业名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                            </td>
                            <td rowspan="2">
                                <hz:HzButton ID="btnQuery" runat="server" Text="查  询" CssClass="btn" OnClick="btnQuery_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GvRelaion" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合要求的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="COMPANYID_PS" HeaderText="配送企业编号" />
            <asp:BoundField DataField="COMPANYNAME" HeaderText="配送企业名称" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="lkbtnDelRelation" runat="server" Text="删除" OnClientClick="return checkDel();" OnClick="lkbtnDelRelation_Click"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>